package com.btr.ivle.data;

public class IVLEToken {
	
	static private String token = "";
	static private String userID = "";
	static private boolean refreshed = false;
	static private boolean offline = false;
	static final public void setToken(String t, String id){
		token = t;
		userID = id;
		refreshed = true;
	}

	static final public void unsetToken(){
		token = "";
		userID = "";
		refreshed = false;
	}
	
	static final public String getToken(){
		return token;
	}
	
	static final public String getUserID(){
		return userID;
	}
	
	static final public boolean getRefreshed(){
		return refreshed;
	}

	public static boolean isOffline() {
		return offline;
	}

	public static void setOffline(boolean offline) {
		IVLEToken.offline = offline;
	}
}